<div id="form-term">
    <label for="name_term">Название:</label>
    <input type="text" name="name_term" id="name_term" value="<?= $this->escape($this->term->getTermName()) ?>" />
    <label for="first_symbol">Буква:</label>
    <input type="text" name="first_symbol" id="first_symbol" value="<?= $this->escape($this->term->getFirstSymbol())?>" placeholder="Буква" maxlength="1"/>
    <label id="tags">Теги:</label>
    <div id="wrap-tags">
        <?if ($this->term->getTags()):?>
        <?foreach ($this->term->getTags() as $tag):?>
            <span type="text" class="term_tags" id="term_tag_<?=$this->escape($tag->getTagId())?>"><?=$tag->getTagName()?></span>
            <?endforeach;?>
        <?endif;?>
        <input type="button" id="add_tags" value="+" class="button small secondary">
    </div>
    <input type="hidden" name="term_id" id="term_id" value="<?=$this->escape($this->term->getTermId()) ?>"/>
    <input type="button" id="add_links" value="+" class="button small secondary">
    <label for="info">Описание:</label>
    <textarea id="info" name="info"><?=$this->escape($this->term->getTermInfo())?></textarea>
    <input type="button" name="submit" class="button small" value="Готово" id="submit" onclick="study.saveTerm()">
</div>